import { IParam } from '@/core';
import { AvueChildThreeUIServiceBase } from './avue-child-three-ui-service-base';

/**
 * avue示例实体03UI服务
 * 基于template/src/ui-service/{{appEntities}}/{{appEntities}}-ui-service.ts.hbs生成
 *
 * @export
 * @class AvueChildThreeUIService
 * @extends AvueChildThreeUIServiceBase
 */
export class AvueChildThreeUIService extends AvueChildThreeUIServiceBase {

    /**
     * 基础UI服务实例
     * 
     * @private
     * @type { AvueChildThreeUIService }
     * @memberof AvueChildThreeUIService
     */
    private static basicUIServiceInstance: AvueChildThreeUIService;

    /**
     * UI服务存储Map对象
     *
     * @private
     * @type {Map<string, any>}
     * @memberof AvueChildThreeUIService
     */
    private static UIServiceMap: Map<string, any> = new Map();

    /**
     * Creates an instance of AvueChildThreeUIService.
     * @memberof AvueChildThreeUIService
     */
    constructor(opts?: IParam) {
        super(opts);
    }

    /**
     * 获取实例
     *
     * @static
     * @param 应用上下文
     * @return {*}  { AvueChildThreeUIService }
     * @memberof AvueChildThreeUIService
     */
    static getInstance(opts?: IParam): AvueChildThreeUIService {
        if (!this.basicUIServiceInstance) {
            this.basicUIServiceInstance = new AvueChildThreeUIService(opts);
        }
        return this.basicUIServiceInstance;
    }
}
export default AvueChildThreeUIService;